package com.fitbet.admin.service.bet;

import java.util.List;

import com.demo2do.core.entity.page.Page;
import com.fitbet.admin.service.DataService;
import com.fitbet.entity.bet.UserBet;
import com.fitbet.entity.bet.UserBetStatus;
import com.fitbet.entity.bet.UserBetSupport;
/**
 * 
 * @author sjh
 *
 */
public interface UserBetService extends DataService<UserBet>{

	/**
	 * 
	 * @return
	 */
	public int count(UserBetStatus status);
	
	/**
	 * 
	 * @return
	 */
	public List<UserBet> list(UserBetStatus status, Page page);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public List<UserBetSupport> listById(Long id);
	
	/**
	 * 
	 * @param id
	 * @param passed
	 */
	public void auth(Long id, boolean passed);
	
	/**
	 * 
	 * @param id
	 * @param success
	 */
	public void close(Long id, boolean reload, boolean success);
	
	
	/**
	 * 
	 * @param id
	 */
	public void failure(Long id);
	
	
}
